//孙子传给爷爷的组件通信layout组件下的仓库
import { defineStore } from "pinia";


let foldStore = defineStore('folded', {
    state: () => {
        return {
            folded: false,
            settingRefresh: false,
        }


    },
    getters: {},
    //异步，逻辑的地方
    actions: {
        changeIcon() {
            this.folded = !this.folded
        },
        changeRefresh() {
            this.settingRefresh = !this.settingRefresh
        }
    }
})



export default foldStore

